/*
 * @Description: 检测执行中弹窗
 * @Author: Zzt
 * @Date: 2022-10-11 12:02:57
 * @LastEditTime: 2022-10-13 14:55:07
 */
import { Button, Modal } from 'antd';
import { LoadingOutlined } from '@ant-design/icons';
import { useEffect } from 'react';
const DetectExecuting = (props: any) => {
  const { visible, onClose } = props;
  useEffect(() => {
    setTimeout(onClose(), 5000);
  }, []);
  return (
    <Modal
      title="检测执行中"
      visible={visible}
      onOk={onClose}
      onCancel={onClose}
      footer={
        <Button type="primary" onClick={onClose}>
          确定
        </Button>
      }
    >
      <div style={{ textAlign: 'center' }}>
        <b style={{ fontSize: '20px' }}>
          <LoadingOutlined />
          正在执行规范性检测
        </b>
        <p>检测完成后，系统以【通知】方式向您反馈检测结果</p>
      </div>
    </Modal>
  );
};
export default DetectExecuting;
